#if !defined(AFX_DLGPURVIEW_H__9BCBBC19_B958_11D7_A240_5254AB3E4F7E__INCLUDED_)
#define AFX_DLGPURVIEW_H__9BCBBC19_B958_11D7_A240_5254AB3E4F7E__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgPurview.h : header file
//
#include "myfunction.h"

/////////////////////////////////////////////////////////////////////////////
// CDlgPurview dialog

class CDlgPurview : public CDialog
{
// Construction
public:
	CDlgPurview(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CDlgPurview)
	enum { IDD = IDD_DIALOG_XIUGAI_PURVIEW };
	CButton	m_btnXitong;
	CButton	m_btnJichuxinxi;
	CButton	m_btnZhangmu;
	CButton	m_btnCaiwu;
	CButton	m_btnDiaohuo;
	CButton	m_btnKucun;
	CButton	m_btnRuku;
	CButton	m_btnXiaoshou;
	int		m_iPurview;
	BOOL	m_bXiaoshou;
	BOOL	m_bRuku;
	BOOL	m_bKucun;
	BOOL	m_bDiaohuo;
	BOOL	m_bCaiwu;
	BOOL	m_bZhangmu;
	BOOL	m_bJichuxinxi;
	BOOL	m_bXitong;
	//}}AFX_DATA
	int m_iOldPurview;
	int m_iNewPurview;
	LRunSql		m_runsql;
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlgPurview)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:  
	void ChangeData(int purview,CString field,bool b_value);
	void GetDataFromDatabase(int purview);
	void RefreshData(int purview);

	// Generated message map functions
	//{{AFX_MSG(CDlgPurview)
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	afx_msg void OnRadio1();
	afx_msg void OnRadio2();
	afx_msg void OnRadio3();
	afx_msg void OnRadio4();
	afx_msg void OnCheck2();
	afx_msg void OnCheck3();
	afx_msg void OnCheck5();
	afx_msg void OnCheck6();
	afx_msg void OnCheck7();
	afx_msg void OnCheck8();
	afx_msg void OnCheck9();
	afx_msg void OnCheck10();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLGPURVIEW_H__9BCBBC19_B958_11D7_A240_5254AB3E4F7E__INCLUDED_)
